package com.conduit.comnands;

import com.conduit.commands.prototype.AbstractValidateValueCommand;
import com.conduit.utils.Utils;

public class ValidateValueFromFileCommand extends AbstractValidateValueCommand {

	public ValidateValueFromFileCommand() {
		// validate value from file <file name> <regex> <expected result>
		commandSyntax = "validate value from file\\s{2,}(.*)\\s{2,}(.*)\\s{2,}(.*)";
	}

	@Override
	public String getCommandName() {
		return "Validate Value From File";
	}

	@Override
	protected String getFileContent(String textInput) throws Exception {
		return Utils.readFile(textInput);
	}


}
